#!/bin/bash
/usr/bin/docker login registry.wang-guanjia.com:5000 -udocker -pdocker@wgj
docker-compose -f ./activemq/docker-compose.yml up -d
#docker-compose -f ./redis/docker-compose.yml up -d
docker-compose -f ./zookeeper/docker-compose.yml up -d
IP=`ifconfig eth0|grep inet|awk -F' ' {'print $2'}|awk -F: {'print $2'}`
sed "s/10.116.74.206/$IP/" ./dubbo-admin/dubbo.properties
docker build -t registry.wang-guanjia.com:5000/dubbo:latest ./dubbo-admin/
docker-compose -f ./dubbo-admin/dubbo/docker-compose.yml up -d

